﻿using Microsoft.EntityFrameworkCore;
using NewFormatProject.Infrastructure.EFCore;
using NewFormatProject.Repository.Instances;
using System;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using System.Text;

namespace NewFormatProject.Server.EFCore
{
    public class ActionLogServerEF : Repository<ActionLogs>
    {
        public ActionLogServerEF(DbContext dbContext) : base(dbContext)
        {
            
    }
        public new int Add(ActionLogs actionLog)
        {
            TSet().Add(actionLog);
           return _dbContext.SaveChanges();
        }
        public new int Add(IEnumerable<ActionLogs> actionLogs)
        {
            TSet().AddRange(actionLogs);
            return _dbContext.SaveChanges();
        }
    }
}
